home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
SCLIB.ARJ
/
SCL1SAMP.EXE
/
VIDEOCFG.C
< prev
next >
Wrap
Text File
|
1992-01-01
|
676b
|
33 lines
#include <scl1.h>
/***************************
VideoConfig function */
char *vs[]={
"",
"Monochrome",
"CGA",
"",
"EGA",
"EGA - mono",
"PGC",
"VGA - mono",
"VGA",
"",
"MCGA - digital - color",
"MCGA - analog - mono",
"MCGA - analog - color",
};
main()
{
struct VideoData *vd;
vd=VideoConfig();
printf("\n Video system: %s\n",vs[vd->Monitor]);
printf(" Video mode: %i\n",vd->Mode);
printf(" Active page: %i\n",vd->Page);
printf(" Lines: %i\n",vd->Lines);
printf(" Columns: %i\n",vd->Cols);
printf("Buffer segment: %X\n\n",vd->Segment);
}